package com.bing.habit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bing.habit.entity.ClockinLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClockinLogDAO extends BaseMapper<ClockinLog> {

    List<ClockinLog> findAllByHidOrderByCreateTimeDesc(@Param("hid") int hid);

    ClockinLog listDay(@Param("hid") int hid, @Param("date") String date);

}
